﻿//-----------------------------------------------------------------------------------
// <copyright file="UnitTestMethodInvokerInfoTest.cs" company="P.O.S Informatique">
//     Copyright (c) P.O.S Informatique. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------------------
namespace PosInformatique.DevelopmentTools.VisualStudio.TestExtensions.Tests
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Reflection;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using PosInformatique.Framework;

    [TestClass]
    public class UnitTestMethodInvokerInfoTest
    {
        [TestMethod]
        public void ConstructorTest()
        {
            MethodInfo method;
            method = typeof(ClassWithMethod).GetMethod("Method");

            UnitTestMethodInvokerInfo info;
            info = new UnitTestMethodInvokerInfo(method);

            Assert.AreSame(method, info.Method);
        }

        private class ClassWithMethod
        {
            public void Method()
            {
            }
        }
    }
}
